﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Renci.iRods.Common;

namespace Renci.iRods.Packets
{
    //#define OpenStat_PI "double dataSize; str dataType[NAME_LEN]; str dataMode[SHORT_STR_LEN]; int l3descInx; int replStatus; int rescTypeInx; int unusedFlag;"
    [Packet("OpenStat_PI")]
    internal class OpenStatusPacket : Packet
    {
        [PacketField("dataSize", 0, DataTypes.Double)]
        public double Size { get; set; }

        [PacketField("dataType", 0, DataTypes.String)]
        public string DataType { get; set; }

        [PacketField("dataMode", 0, DataTypes.String)]
        public string DataMode { get; set; }

        [PacketField("l3descInx", 0, DataTypes.Int)]
        public int Handle { get; set; }

        [PacketField("replStatus", 0, DataTypes.Int)]
        public int ReplicationStatus { get; set; }

        [PacketField("rescTypeInx", 0, DataTypes.Int)]
        public int ResourceID { get; set; }

        [PacketField("unusedFlag", 0, DataTypes.Int)]
        public int Unused { get; set; }

    }
}
